import request from '@/utils/request'

// 获取权限列表
export const getPermissions=()=>{
  return request.get('/sys/permission')
}

// 新增权限点
export const addPermissions=(data)=>{
  return request.post('/sys/permission',data)
}

// 删除权限
export const deletePermissions=(id)=>{
  return request.delete(`/sys/permission/${id}`)
}

// 获取权限点详细
export const getDetailPermissions=(id)=>{
  return request.get(`/sys/permission/${id}`)
}


// 编辑权限
export const updatePermissions=(id,data)=>{
  return request.put(`/sys/permission/${id}`,data)
}